package com.wl.mybootwork4.common;

/**
 * @author wl
 * @version 1.0
 * @date 2022/6/13
 * @description: 返回数据的绑定 枚举类型
 */
public enum ResultCode {

    SUCCESS(1,"请求成功!"),
    FAIL(0,"请求失败!");


    Integer code;
    String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
